#include "task1.h"
#include <unistd.h>

Task1::Task1(QObject *parent) : QObject(parent)
{
    this->setAutoDelete(true);
}

void Task1::run()
{
    int i=0;
    for (;;) {
        emit task_signal(i++);
        sleep(1);
        if(i>10)
        {
            break;
        }
    }
}
